package history

class CounterTagLib {
    static namespace = "m"
    def counterService

    def count = { attrs ->
        def writer = out
        if (attrs.name) {
            writer << counterService.getCounts(attrs.name)
        } else {
            writer << counterService.getAllCounts()
        }
    }
}